Optimal. Leaf size=129 \[ \frac{a (e \tan (c+d x))^{m+1} \text{Hypergeometric2F1}\left (1,\frac{m+1}{2},\frac{m+3}{2},-\tan ^2(c+d x)\right )}{d e (m+1)}+\frac{a \sec (c+d x) \cos ^2(c+d x)^{\frac{m+2}{2}} (e \tan (c+d x))^{m+1} \text{Hypergeometric2F1}\left (\frac{m+1}{2},\frac{m+2}{2},\frac{m+3}{2},\sin ^2(c+d x)\right )}{d e (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0824419, antiderivative size = 129, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {3884, 3476, 364, 2617} \[ \frac{a (e \tan (c+d x))^{m+1} \, _2F_1\left (1,\frac{m+1}{2};\frac{m+3}{2};-\tan ^2(c+d x)\right )}{d e (m+1)}+\frac{a \sec (c+d x) \cos ^2(c+d x)^{\frac{m+2}{2}} (e \tan (c+d x))^{m+1} \, _2F_1\left (\frac{m+1}{2},\frac{m+2}{2};\frac{m+3}{2};\sin ^2(c+d x)\right )}{d e (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3884
Rule 3476
Rule 364
Rule 2617
Rubi steps
\begin{align*} \int (a+a \sec (c+d x)) (e \tan (c+d x))^m \, dx &=a \int (e \tan (c+d x))^m \, dx+a \int \sec (c+d x) (e \tan (c+d x))^m \, dx\\ &=\frac{a \cos ^2(c+d x)^{\frac{2+m}{2}} \, _2F_1\left (\frac{1+m}{2},\frac{2+m}{2};\frac{3+m}{2};\sin ^2(c+d x)\right ) \sec (c+d x) (e \tan (c+d x))^{1+m}}{d e (1+m)}+\frac{(a e) \operatorname{Subst}\left (\int \frac{x^m}{e^2+x^2} \, dx,x,e \tan (c+d x)\right )}{d}\\ &=\frac{a \, _2F_1\left (1,\frac{1+m}{2};\frac{3+m}{2};-\tan ^2(c+d x)\right ) (e \tan (c+d x))^{1+m}}{d e (1+m)}+\frac{a \cos ^2(c+d x)^{\frac{2+m}{2}} \, _2F_1\left (\frac{1+m}{2},\frac{2+m}{2};\frac{3+m}{2};\sin ^2(c+d x)\right ) \sec (c+d x) (e \tan (c+d x))^{1+m}}{d e (1+m)}\\ \end{align*}
Mathematica [A] time = 0.702312, size = 105, normalized size = 0.81 \[ \frac{a (e \tan (c+d x))^m \left (\frac{\tan (c+d x) \text{Hypergeometric2F1}\left (1,\frac{m+1}{2},\frac{m+3}{2},-\tan ^2(c+d x)\right )}{m+1}+\csc (c+d x) \left (-\tan ^2(c+d x)\right )^{\frac{1-m}{2}} \text{Hypergeometric2F1}\left (\frac{1}{2},\frac{1-m}{2},\frac{3}{2},\sec ^2(c+d x)\right )\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.68, size = 0, normalized size = 0. \begin{align*} \int \left ( a+a\sec \left ( dx+c \right ) \right ) \left ( e\tan \left ( dx+c \right ) \right ) ^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sec \left (d x + c\right ) + a\right )} \left (e \tan \left (d x + c\right )\right )^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \sec \left (d x + c\right ) + a\right )} \left (e \tan \left (d x + c\right )\right )^{m}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} a \left (\int \left (e \tan{\left (c + d x \right )}\right )^{m}\, dx + \int \left (e \tan{\left (c + d x \right )}\right )^{m} \sec{\left (c + d x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sec \left (d x + c\right ) + a\right )} \left (e \tan \left (d x + c\right )\right )^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]